<%@page import="com.ym.b2b.cache.configcache.WebAppConfig"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page contentType="text/html; charset=UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>后台登录-<%=WebAppConfig.getConfigMap().get("SITE-NAME") %>-后台管理系统</title>
<link href="<c:url value="/css/admin-ui/style.css" />" rel="stylesheet" type="text/css" ></link>
<script type="text/javascript" src="<c:url value='/js/jquery-2.1.1.min.js'/>"></script>

<script type="text/javascript" src="<c:url value='/js/plug/base.js'/>"></script>
<!-- 弹出 +提示插件 -->
<script src="<c:url value="/js/plug/layer-v1.8.5/layer/layer.min.js" />"></script>

<script language="javascript">

$(function(){
	if(whichBrs()=="Internet Explorer"){
		$.layer({
		    shade: [0],
		    area: ['auto','auto'],
		    dialog: {
		        msg: '<span style="color:red;font-weight:bord;font-size:15px;">浏览器  我们认准chrome!</span> 为了更流畅的操作宣城在线后台管理系统  建议您下载世界上最快的浏览器google   chrome？',
		        btns: 2,                    
		        type: 4,
		        btn: ['立即下载','下次再说吧!'],
		        yes: function(){
			        //down load google chrome
			        window.open('http://w.x.baidu.com/alading/anquan_soft_down_ub/14744');
		        }, no: function(){
		        	layer.msg('您再考虑考虑吧!', 1, 8);
		        }
		    }
		});
	}
});

</script>
</head>
<style>
.form-control{
	height: 40px;
}
</style>
<body style="background-color: rgb(28, 119, 172); background-image: url('<c:url value="/css/admin-ui/images/light.png" />'); overflow: hidden; background-position: -1077.2999999999872px 0px; background-repeat: no-repeat no-repeat;">
   <div id="mainBody">
     <div id="cloud1" class="cloud" style="background-position: 103.10000000000561px 100px;"></div>
     <div id="cloud2" class="cloud" style="background-position: -498px 460px;"></div>
   </div>  
<div class="logintop">    
    <span>欢迎登录“<%=WebAppConfig.getConfigMap().get("SITE-NAME") %>”后台管理平台</span>    
    <ul>
    <li><a href="#">回到首页</a></li>
    <li><a href="#">帮助</a></li>
    <li><a href="#">关于</a></li>
    </ul>    
    </div>
    <div class="loginbody">
   		 <form class="login-bd" id="loginForm" name="loginForm" action="<c:url value='/background/user/managerlogin.do'/>" method="post">
			<input type="hidden" value="B2B" name="SYSTEM_CODE" >
			<input type="hidden" value="WEB" name="MENU_TYPE" >
		    <span class="systemlogo" style="background: url('<c:url value="/css/admin-ui/images/logo.png" />') no-repeat center;"></span> 
		    <div class="loginbox" style="position: absolute; left: 374px;">
			    <ul>
				    <li><input type="text" name="username" id="TxtUserName"  class="loginuser" value="b2b_admin" onclick="JavaScript:if(this.value=='登录账号')this.value=''"  ></li>
				    <li><input type="password" id="TxtPassword" name="password" class="loginpwd" value="111" onclick="JavaScript:if(this.value=='密码')this.value=''"></li>
				    <li><input name="" type="button" class="loginbtn" value="登录" onclick="javascript:submit()">
				    <label><input name="" type="checkbox" value="" checked="checked">记住密码</label> </li>
			    </ul>
	    	</div>
    	</form>
    </div>
    
    
    
    <div class="loginbm">版权所有  2016  <a href="#"><%=WebAppConfig.getConfigMap().get("SITE-NAME") %></a>   </div>
<div>
</div>

<script>
function submit(){
	var username = null;
	var password = null;
	username = document.getElementById('TxtUserName').value.replace(/\s+/g,"");
	password = document.getElementById('TxtPassword').value.replace(/\s+/g,"");
	
	if (!username) {
		layer.msg("请输入用户名！", 1, 8);
		document.getElementById('TxtUserName').focus();
		return false;
	}

	if(username && !password){
		document.getElementById('TxtPassword').focus();
		return false;
	} 
	
	if (username && password) {
		document.getElementById('TxtPassword').value=password;
		document.forms.loginForm.submit();
		return false;
	}
}
</script>
<script src="<c:url value="/css/admin-ui/cloud.js" />" type="text/javascript"></script>
 </body>
</html>